package com.jumi.microservice.service.logistics.express;

import com.jumi.microservice.dto.logistics.LogisticsSearchRequest;
import com.jumi.microservice.dto.logistics.LogisticsSearchResponse;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author by mazhao
 * 中国邮政快递
 * @Classname ChinaPostExpress
 * @Description TODO
 * @Date 2020/8/21 14:31
 */
@Service
public class EmsExpress extends ResponseController implements Express {

    @Resource
    ChinaPostExpress chinaPostExpress;

    @Override
    public String expressCode() {
        return "EMS";
    }

    @Override
    public LogisticsSearchResponse logisticsSearch(LogisticsSearchRequest request) {
        return chinaPostExpress.logisticsSearch(request);
    }

}
